@import "common";
@import "item-reset";
@import "item-detail-icon";

.light-gray {
    color: #787878;
}

//商品详情
.shopping {
    &.item-detail {

        .sale-price {
            font-size: .24rem;
        }

        .origin-price {
            font-size: .15rem;
        }

        .title {
            height: .4rem;
            line-height: .4rem;
            margin: 0;
        }

        .title,
        .item-name {
            padding: 0 .1rem;
            font-size: .16rem;
            color: #3b3b3b;
        }

        .item-name {
            margin: .15rem 0;
            line-height: 1.3em;
        }

        .container {
            display: -webkit-box;
            display: -webkit-flex;

            &.block {
                display: block;
            }

            &.space-between {
                -webkit-box-pack: justify;
                -webkit-justify-content: space-between;
            }

            > div {
                padding-left: .1rem;
                padding-right: .1rem;
            }
        }

        .price-right {
            > span {
                &:first-child {
                    margin-right: .1rem;
                }

                display: inline-block;
                width: .45rem;
                height: .2rem;
                text-align: center;
                border-radius: 2px;
                font-size: .13rem;
            }
        }

        .seller-promise {
            padding: 0 .12rem;
            margin-top: .15rem;
            height: .25rem;
            line-height: .25rem;
            color: #787878;
            background-color: #f2f2f2;

            > div {
                padding: 0;
            }

            span {
                color: #787878;
            }
        }

        .radio-box {
            padding: .14rem 0;

            + .title {
                border-top: 1px solid #dcdcdc;
            }
        }

        .mui-btn {
            height: .32rem;
            line-height: .32rem;
            margin: 0 .1rem .07rem 0;
        }

        .comment {
            padding: .1rem 0;
            font-size: .15rem;
            line-height: 1.5;
            color: #787878;
        }

        .tab {
            .detail {
                border-bottom: 1px solid #dcdcdc;
                font-size: .15rem;
                color: #787878;
            }

            .detail-form {
                margin: .1rem;
            }

            .detail-form-row {
                p,
                span,
                aside {
                    font-size: .15rem;
                    color: #787878;
                }
            }
        }

        .rich-text {
            span,
            p {
                margin: .04rem 0 !important;
                text-align: left !important;
                font-size: .15rem !important;
                line-height: 1.5 !important;
                color: #787878 !important;
            }
        }


        .btn-wrapper {
            position: relative;
            height: .575rem;
        }

        .fixed-btn {
            position: fixed;
            bottom: 0;
            width: 100%;
            padding: .12rem;
            background-color: #fff;
            z-index: 99;

            .mui-btn {
                margin: 0;
                height: .375rem;
                line-height: .375rem;

                &:last-child {
                    margin-left: .1rem;
                }
            }

            .shopping-cart {
                width: .62rem;
            }

            .add-cart,
            .buy-now {
                display: inline-block;
                width: 1.23rem;
                font-size: .15rem;
            }

            .phone {
                margin: 0 !important;
                width: 100%;

                span,
                a {
                    font-size: .16rem;
                }

                .num {
                    color: #fff;
                }
            }
        }

        //圆形要搞成组件
        .to-top {
            position: fixed;
            right: .12rem;
            bottom: .65rem;
            width: .375rem;
            height: .375rem;
            border-radius: 99%;
            background-color: $blue;
            opacity: 0;

            &.active {
                opacity: 1;
                z-index: 99;
            }

            &:active {
                background-color: $gray;
            }
        }

        .mui-icon-arrowup:before {
            font-size: .38rem;
            font-weight: lighter;
            line-height: .35rem;
            color: #fff;
        }

        .mui-icon-checkmarkempty:before {
            position: absolute;
            right: -.07rem;
            bottom: 0;
            line-height: .13rem;
            font-size: 25px;
            color: #fff;
            z-index: 10;
            opacity: 0;
        }

        .triangle::after {
            content: '';
            position: absolute;
            right: 0;
            bottom: 0;
            display: block;
            width: 0;
            height: 0;
            border-bottom: .15rem solid $red;
            border-left: .19rem solid transparent;
            opacity: 0;
        }

        .lf-radio {
            -webkit-transition: none;
            transition: none;

            &.active {
                color: $red;
                border-color: $red;
                background-color: transparent;

                &.triangle::after,
                &.mui-icon-checkmarkempty:before {
                    opacity: 1;
                }
            }
        }

        .tip-num {
            left: 50%;
            width: .17rem;
            height: .16rem;
            line-height: .16rem;
            background-color: $red;
            border-color: $red;

            &.two-num,
            &.dot {
                width: .19rem;
                height: .17rem;
                line-height: .16rem;
            }
        }

        .icon {
            &.true-item,
            &.return-item,
            &.cart {
                &::before {
                    position: relative;
                    padding-right: .05rem;
                    font-size: .20rem;
                    line-height: .3rem;
                    color: $blue;
                }
            }

            &.cart::before {
                font-size: .25rem;
            }

            &.shopping-cart::before {
                display: block;
                font-size: .26rem;
                line-height: .35rem;
                transform: translateX(-1px);
            }
        }
    }
}

